﻿Ext.define('Examples.autocrud.user.metadata.Metadata', {
    extend: 'Happy.metadata.Metadata',
    singleton: true,

    data: {
        namespace: 'Examples.autocrud',
        name: 'User',
        plural: 'Users',
        displayName: '用户',
        summaryProperty: 'Name',
        proxy: {
            actionMethods: {
                create: 'GET',
                read: 'GET',
                update: 'GET',
                destroy: 'GET'
            },
            api: {
                create: 'app/user/server/create.txt',
                read: 'app/user/server/read.txt',
                load: 'app/user/server/load.txt',
                update: 'app/user/server/update.txt',
                destroy: 'app/user/server/destroy.txt'
            }
        },
        properties: {
            Id: {
                name: 'Id',
                diplayName: '标识',
                description: '标识',
                dataType: "Guid",
                unique: true,
                sortable: false,
                editable: false,
                nullable: false,
                searchable: false,
                computation: false,
                showInDefault: false,
                defaultValue: null,
                options: [],
                length: null,
                scale: null,
                format: null,
                maxLength: null,
                minLength: null,
                precision: null
            },
            Name: {
                name: 'Name',
                diplayName: '姓名',
                description: '姓名',
                dataType: "String",
                unique: false,
                sortable: false,
                editable: false,
                nullable: false,
                searchable: false,
                computation: false,
                showInDefault: false,
                defaultValue: null,
                options: [],
                length: null,
                scale: null,
                format: null,
                maxLength: null,
                minLength: null,
                precision: null
            },
            Email: {
                name: 'Email',
                diplayName: '邮件',
                description: '邮件',
                dataType: "String",
                unique: false,
                sortable: false,
                editable: false,
                nullable: false,
                searchable: false,
                computation: false,
                showInDefault: false,
                defaultValue: null,
                options: [],
                length: null,
                scale: null,
                format: null,
                maxLength: null,
                minLength: null,
                precision: null
            }
        }
    }
});